import request from '@/utils/request'


export function createSysContact(data) {
  return request({
    url: '/api/SysContact/save',
    method: 'post',
    data
  })
}

export function delSysContact(id) {
  return request({
    url: '/api/SysContact/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/SysContact/batch/del',
    method: 'post',
    data
  })
}

export function editSysContact(data) {
  return request({
    url: '/api/SysContact/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/SysContact/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageSysContact(query) {
  return request({
    url: '/api/SysContact/getPage',
    method: 'post',
    data: query
  })
}

export function getListSysContact(query) {
  return request({
    url: '/api/SysContact/getList',
    method: 'post',
    data: query
  })
}




